package cn.wolfcode.luowowo.search.service;

import cn.wolfcode.luowowo.search.domain.DestinationTemplate;
import cn.wolfcode.luowowo.search.domain.StrategyTemplate;
import cn.wolfcode.luowowo.search.query.StrategySearchQuery;
import cn.wolfcode.luowowo.search.vo.StatisVO;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * es中攻略的搜索服务
 */
public interface IStrategyTemplateSearchService {

    void save(StrategyTemplate strategyTemplate);

    List<Map<String, Object>> queryThemeTop10();

    List<StatisVO> queryConditionThemeGroup();

    List<StatisVO> queryConditionAbroadsGroup();

    List<StatisVO> queryConditionProvincesGroup();

    Page query(StrategySearchQuery qo);

    List<StrategyTemplate> findByDestName(String name);
}
